<template>
  <div class="container">
    <Category title="美食" >
        <img src="https://pic2.zhimg.com/v2-6fa6ec4d24d1dd691a14bc791fbd3927_1440w.jpg?source=172ae18b" alt="">
    </Category>
    <Category title="游戏" >
<ul>
    <li v-for="(g,index) in games" :key="index">{{ g }}</li>
</ul>
    </Category>
    <Category title="电影">
        <video controls src="https://tv.sohu.com/v/dXMvMzM1OTQyNzExLzM5NTMyMTEzOC5zaHRtbA==.html"></video>
    </Category>
  </div>
</template>

<script>
import Category from './components/Category.vue'
export default {
name:'App',
components:{Category},
data(){
return {
    foods:['火過','燒烤','小龙虾','牛排'],
    games:['第五人格','原神','部落冲突','明日之后'],
    films:['《教父》','《我不是药神》','《永远在一起》','《喜羊羊》']
}
}
}
</script>

<style>
.container{
    display: flex;
    justify-content: space-around;
}
img{
width: 100%;
}
video{
    width: 100%;
}
</style>